import request from "@/utils/request";
//获取不同科室下，不同职位的医生信息
export const getDoctorInfoAPI = (data)=>request.post('/doctorSch/getDoctorWithDept',data)
//获取医生的排班列表
export const getDoctorSchListAPI = (id)=>request.get(`/doctorSch/getDoctorSch?id=${id}`)
//添加或者修改排班
export const AddOrUpdateDoctorSchAPI = (data)=>{
    if (data.id) {
        return request.put(`/doctorSch/updateDoctorSch?id=${data.id}`,data)
    }else{
        return request.post('/doctorSch/addDoctorSch',data)
    }
}
//获取排班详情
export const getDoctorSchDetailAPI = (id)=>request.get(`/doctorSch/getDoctorSchDetail?id=${id}`)